<template>
  <div class="target-model">
    <el-form label-position="right">
      <el-form-item label-width="100px" label="输出目标">
        <el-radio-group v-model="radioType">
          <el-radio disabled :label="1">输出到新模型</el-radio>
          <el-radio :label="2">输出到已有模型</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item
        label-width="100px"
        label="目标数据源"
        v-show="radioType === 1"
      >
        <!-- <el-select> </el-select> -->
      </el-form-item>
      <el-form-item
        label-width="100px"
        label="默认所属主题"
        v-show="radioType === 1"
      >
        <!-- <el-select> </el-select> -->
      </el-form-item>
    </el-form>
    <new-model v-show="radioType === 1"></new-model>
    <exist-model v-show="radioType === 2"></exist-model>
  </div>
</template>
<script>
import ExistModel from "./existMode.vue";
import NewModel from "./newModel.vue";
export default {
  components: {
    ExistModel,
    NewModel,
  },
  data() {
    return {
      radioType: 2,
    };
  },
};
</script>
<style lang="scss" scoped>
.el-select {
  width: 100%;
}
</style>
